import request from '@/utils/request'

// 查询审核流程列表
export function listFlowStep(query) {
  return request({
    url: '/asset/flowStep/list',
    method: 'get',
    params: query
  })
}

// 查询审核流程详细
export function getFlowStep(id) {
  return request({
    url: '/asset/flowStep/' + id,
    method: 'get'
  })
}

// 新增审核流程
export function addFlowStep(data) {
  return request({
    url: '/asset/flowStep',
    method: 'post',
    data: data
  })
}

// 修改审核流程
export function updateFlowStep(data) {
  return request({
    url: '/asset/flowStep',
    method: 'put',
    data: data
  })
}

// 删除审核流程
export function delFlowStep(id) {
  return request({
    url: '/asset/flowStep/' + id,
    method: 'delete'
  })
}
